<?php
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
|这里是您可以为应用程序注册API路由的地方。这些
|路由由组中的RouteServiceProvider加载
|被分配了“api”中间件组。享受构建API的乐趣！
|
*/

$api = app('Dingo\Api\Routing\Router');

$api->version('v1', function ($api) {
    $api -> group([], function ($api) {
        require base_path('app/Api/routes.php');

        require base_path('app/Http/routes.php');

        require base_path('app/Shop/routes.php');

    });
    $api -> group(['namespace' => 'App\Http\Controllers','prefix' => 'ceshi'], function ($api) {
        $api->post('upload_file', 'CeshiController@uploadFile');

        $api->get('ocr_file', 'CeshiController@ocrFile');

        $api->get('show_file', 'CeshiController@showFile');

        $api->post('send_msg', 'CeshiController@send_msg');

        $api->post('first_send_msg', 'CeshiController@firstSendMsg');

        $api->get('show_file_content', 'CeshiController@show_file_content');
    });
});
